package com.car.dal.dao.director;
import com.car.dal.dao.ibatis.IbatisCommonDao;
import com.car.dal.object.CenterDirector;
import com.car.util.Page;
import java.util.List;

/**
 * Created by AoSnow on 2017/5/16.
 */
public class CenterDirectorDaoImpl extends IbatisCommonDao<CenterDirector, Integer> implements CenterDirectorDao {
    @Override
    public List<CenterDirector> getCenterDirectorList(CenterDirector centerDirector, Page page) {
        centerDirector.setFirstrownum(page.getFirstrownum());
        centerDirector.setPagesize(page.getPagesize());
        List<CenterDirector> list=this.queryForEntityList(CenterDirector.class,"getCenterDirectorList", centerDirector);
        return list;
    }

    @Override
    public Integer getCenterDirectorCount(CenterDirector centerDirector) {
        return this.queryForInteger("getCenterDirectorCount", centerDirector);
    }

    @Override
    public List<CenterDirector> getCenterDirectorByuser(CenterDirector centerDirector) {
        return this.queryForEntityList(CenterDirector.class,"getCenterDirectorByuser", centerDirector);
    }
}
